import { Column, Table } from '../../Index'

export interface UserInfo {
  id?: number
  info: string
}

class UserInfoTable extends Table<UserInfo> {
  override tableName: string = 't_user'
  readonly id = Column.integer('id').primaryKey(true).bindTo(this, 'id')
  readonly info = Column.text('email').notNull().bindTo(this, 'info')
}

export default new UserInfoTable()